# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, String, DateTime, Boolean, BigInteger, SmallInteger


class SysDictionaryDetails(Base):
    __tablename__ = 'sys_dictionary_details'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    label = Column(String(191),    doc='展示值')
    value = Column(BigInteger, doc='字典值')
    sort = Column(BigInteger, doc='排序标记')
    status = Column(SmallInteger,    doc='启用状态')
    sys_dictionary_id = Column(BigInteger, doc='关联标记')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, index=True, doc='')
    deleted = Column(Boolean, default=0, doc='')